<!DOCTYPE html>
<!--查询会员-->
<html lang="en" xmlns:th="http://www.thymeleaf.org"
      xmlns:layout="http://www.ultraq.net.nz/web/thymeleaf/layout" layout:decorate="~{layout/storelayout}" >
<head>
    <meta charset="UTF-8">
    <title>查询会员信息</title>
    <link th:href="@{/static/css/style.css}" rel="stylesheet">
</head>
<body>
<script src="../../static/js/jquery-1.12.4.min.js"></script> <!-- 你必须先引入jQuery1.8或以上版本 -->
<script src="layer.js"></script>
<script>
    layer.msg('hello');
</script>
<div layout:fragment="content">
    <table class="layui-table" lay-even="" lay-skin="row">
        <thead>
        <tr>
            <th lay-data="{}">卡号</th>
            <th>手机号</th>
            <th>用户名</th>
            <th>生日</th>
            <th>余额</th>
            <th>卡类型</th>
            <th>状态</th>
            <th>积分</th>
            <th>时间</th>
            <th>操作</th>
        </tr>
        </thead>
        <tbody>
        <tr th:each="memberInFo:${memberInFoSelect}">
            <td th:text="${memberInFo.cardId}"></td>
            <td th:text="${memberInFo.iphone}"></td>
            <td th:text="${memberInFo.name}"></td>
            <td th:text="${memberInFo.birthday}"></td>
            <td th:text="${memberInFo.balance}"></td>
            <td th:if="${memberInFo.type == 1}">铜卡</td>
            <td th:if="${memberInFo.type == 2}">金卡</td>
            <td th:if="${memberInFo.type == 3}">钻卡</td>
            <td th:text="${memberInFo.state}"></td>
            <td th:text="${memberInFo.integral}"></td>
            <td th:text="${#dates.format(memberInFo.time,'yyyy-MM-dd')}"></td>
            <td>
                <a class="layui-btn layui-btn-xs" lay-event="edit" th:href="@{'/memberInFo/update/'+${memberInFo.cardId}}">编辑</a>
                <a class="layui-btn layui-btn-danger layui-btn-xs" lay-event="del" th:href="@{'/memberInFo/delete/'+${memberInFo.cardId}}">删除</a>
            </td>
        </tr>
    </table>
</div>
</body>
</html>